﻿using Devil;
using System.Collections;

namespace GameToolkit.Editor
{
    public class SearchPanelIntentProvider : SearchTreeLib<SearchPanelIntentProvider>
    {
        public override string Icon => null;

        public override string SearchTreeTitle => "Panel Intent Provider";

        protected override string NameOfNone => "No Intent Provider";

        public override bool IsNodeType(System.Type nodeType)
        {
            return Ref.IsTypeInheritedFrom(nodeType, typeof(PanelClip.IntentProvider), false);
        }

        [InitializeOnLoadMethodParallel(IsOnMainThread = true)]
        static IEnumerator Init()
        {
            yield return LoadLib();
        }
    }
}
